package com.yunxi.model.sys;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 地域信息
 * </p>
 *
 * @author 
 * @since 2019-05-07
 */
@Data
@EqualsAndHashCode(callSuper = false)

@TableName("sys_area")
@ApiModel(value="Area对象", description="地域信息")
public class Area implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "AREA_ID", type = IdType.UUID)
    private String areaId;

    @TableField("CODE")
    private String code;

    @TableField("NAME")
    private String name;

    @TableField("FULL_CODE")
    private String fullCode;

    @TableField("FULL_NAME")
    private String fullName;

    @TableField("PCODE")
    private String pcode;

    @TableField(value ="CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value ="UPDATE_TIME", fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField("SORT_NO")
    private Integer sortNo;

    @TableField("IS_SHOW")
    private Integer isShow;

    @TableField("IS_HOT")
    private Integer isHot;

    @TableField("COUNTRY_CODE")
    private String countryCode;

    @ApiModelProperty(value = "级别")
    @TableField("LV")
    private String lv;

    @ApiModelProperty(value = "层级")
    @TableField("RANK")
    private Integer rank;

    @TableField("TYPE")
    private Integer type;//类型
}
